import React from 'react'
import { Button } from 'react-native'
import { createAppContainer, createStackNavigator } from 'react-navigation'
import OrderListTab from './pages/OrderListTab.js'

/** 商城部分的路由 */
const MallStack = createStackNavigator({
  OrderList: {
    screen: OrderListTab,
    navigationOptions: ({ navigation }) => {
      return {
        headerTitle: '订单列表',
        headerLeft: (
          <Button onPress={() => navigation.dismiss()} title="关闭"/>
        )
      }
    }
  }
})

export default createAppContainer(MallStack)